package com.pojo;

import lombok.Builder;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Builder
public class Meeting {
    private Integer id;

    @Min(value = 1,message = "请选择会议室")
    private Integer roomid;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date usedate;

    private Integer usetime;

    @NotEmpty(message = "主题不能为空")
    @Length(max=20,message="主题长度不能超过20字")
    private String theme;

    @NotEmpty(message="摘要不能为空")
    @Length(max=200,message="摘要长度不能超过200字")
    private String abstracts;

    private Integer applicantid;

    private Date applicantdate;

    private Integer approvalid;

    private Date approvaldate;

    private String status;

    private String summaryurl;

    private String checkstatus;

    @Override
    public String toString() {
        return "Meeting{" +
                "id=" + id +
                ", roomid=" + roomid +
                ", usedate=" + usedate +
                ", usetime=" + usetime +
                ", theme='" + theme + '\'' +
                ", abstracts='" + abstracts + '\'' +
                ", applicantid=" + applicantid +
                ", applicantdate=" + applicantdate +
                ", approvalid=" + approvalid +
                ", approvaldate=" + approvaldate +
                ", status='" + status + '\'' +
                ", summaryurl='" + summaryurl + '\'' +
                ", checkstatus='" + checkstatus + '\'' +
                '}';
    }

    public Meeting() {
    }


    public Meeting(Integer id, Integer roomid, Date usedate, Integer usetime, String theme, String abstracts,
                   Integer applicantid, Date applicantdate, Integer approvalid, Date approvaldate, String status,
                   String summaryurl, String checkstatus) {
		super();
		this.id = id;
		this.roomid = roomid;
		this.usedate = usedate;
		this.usetime = usetime;
		this.theme = theme;
		this.abstracts = abstracts;
		this.applicantid = applicantid;
		this.applicantdate = applicantdate;
		this.approvalid = approvalid;
		this.approvaldate = approvaldate;
		this.status = status;
		this.summaryurl = summaryurl;
		this.checkstatus = checkstatus;
	}


	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public Date getUsedate() {
        return usedate;
    }

    public void setUsedate(Date usedate) {
        this.usedate = usedate;
    }

    public Integer getUsetime() {
        return usetime;
    }

    public void setUsetime(Integer usetime) {
        this.usetime = usetime;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getAbstracts() {
        return abstracts;
    }

    public void setAbstracts(String abstracts) {
        this.abstracts = abstracts;
    }

    public Integer getApplicantid() {
        return applicantid;
    }

    public void setApplicantid(Integer applicantid) {
        this.applicantid = applicantid;
    }

    public Date getApplicantdate() {
        return applicantdate;
    }

    public void setApplicantdate(Date applicantdate) {
        this.applicantdate = applicantdate;
    }

    public Integer getApprovalid() {
        return approvalid;
    }

    public void setApprovalid(Integer approvalid) {
        this.approvalid = approvalid;
    }

    public Date getApprovaldate() {
        return approvaldate;
    }

    public void setApprovaldate(Date approvaldate) {
        this.approvaldate = approvaldate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSummaryurl() {
        return summaryurl;
    }

    public void setSummaryurl(String summaryurl) {
        this.summaryurl = summaryurl;
    }

    public String getCheckstatus() {
        return checkstatus;
    }

    public void setCheckstatus(String checkstatus) {
        this.checkstatus = checkstatus;
    }
}